import React,{useEffect,useLayoutEffect, useState} from 'react'

const Layout =()=>{
    const [name,setName]=useState<string>("hello wodrld")

    useEffect(()=>{
        let i =0;
        while(i<=100000000){
            i++
        }
        setName("xxxx sdfsds")
    },[])

    return (
        <div>
            {name}
        </div>
    )

}

export default Layout